﻿using CID.Domain.Operations;

namespace CID.Domain.Persistence.Mappings.Operations
{
    public class ServerMap : NamedEntityMap<Server>
    {
        public ServerMap() : base()
        {
            Map(x => x.Address);
            Map(x => x.Enabled);
            References<Location>(x => x.Location);
            HasMany<ServerAssignment>(x => x.Assignments);
        }
    }
}
